#ifndef TYPES_H
#define TYPES_H
#include <vector>
#include "ball.h"
#include "block.h"
#include "baffle.h"
#include "score.h"

using namespace std;
struct point{
    int x;
    int y;
};
// 关卡相关需要初始化的数据结构。
class LevelObject{
public:
    vector<CBall> balls;
    vector<CBlock> blocks;
    CBaffle baffle;
    CScore score;          // 分数

    void paint(QPainter *painter);
    void run();
    int checkCollision(vector<CBall>::iterator ball_item);
};

#endif // TYPES_H
